package com.onesports.intelligent.k12.polarlight.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @author Wsy
 **/
public enum MenuType implements IEnum<Integer> {

    /**
     * 菜单类型 1：模块 2：菜单 3：按钮
     */
    MODULE(1,"模块"),
    MENU(2,"菜单"),
    BUTTON(3,"按钮"),
    ;

    private Integer code;
    private String text;

    MenuType(Integer code, String text){
        this.code = code;
        this.text = text;
    }



    @Override
    public Integer getValue() {
        return this.code;
    }

    @JsonValue
    public String getText() {
        return this.text;
    }
}
